<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>list</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <table align="center" border="1">
		<tr>
			<th>ID</th>
			<th>账号</th>
			<th>姓名</th>
			<th>密码</th>
			<th>头像</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${user}" var="row" varStatus="status">
			<tr>
				<td align="center"><c:out value="${row.userid }"/></td>
				<td align="center">${row.account}</td>
				<td align="center">${row.name}</td>
				<td align="center">${row.password}</td>
				<td align="center">${row.image}</td>
				<td align="center">
					<a onclick="return confirm('确定删除该条记录?')"
					href="user/delete.do?id=${row.userid }">删除</a>
					<a href="updateUser.jsp?id=${row.userid }&account=${row.account}&name=${row.name}&password=${row.password}&image=${row.image}">修改</a>
				</td>
			</tr>
		</c:forEach>
	</table>
  </body>
</html>
